#include "DrawActionBase.h"

DrawActionBase::DrawActionBase()
{
	
}


void DrawActionBase::SetClearTargets(int targets)
{
	target = targets;
}
void DrawActionBase::SetClearColor(Color color)
{
	glClearColor(color.r,color.g,color.b,color.a);
}

void DrawActionBase::UseDepthTest(bool val)
{
	if(val)
		glEnable(GL_DEPTH_TEST);
	else glDisable(GL_DEPTH_TEST);
}

void DrawActionBase::Clear()
{
	glClear(target);
}